package com.example.demo.Server.Imp;

import com.example.demo.DAO.UserDao;
import com.example.demo.Entity.User;
import com.example.demo.Server.userServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;


@Service
@Primary
public class UserServerImp implements userServer {
    @Autowired
    UserDao dao;


    @Override
    public void addUser(User user) {
         dao.addUser(user);

    }

    @Override
    public User isLogin(User user) {
        return dao.isLogin(user);
    }

    @Override
    public Integer upPassword(User user) {
        return dao.upPassword(user);
    }
}
